
if [[ -n $BASH_VERSION ]]; then
  curdir="$(cd "$(dirname $(realpath ${BASH_SOURCE[0]}))"; pwd)"
elif [[ -n $ZSH_VERSION ]]; then
  curdir="$(cd "$(dirname "$(realpath ${(%):-%x})")"; pwd)"
fi

if [[ -z "${WSL_INTEROP}" ]]; then
  echo "WSL_INTEROP not set, not in WSL env?" 1>&2
fi

if ! compgen -G "/proc/sys/fs/binfmt_misc/WSLInterop*" > /dev/null; then
    echo "/proc/sys/fs/binfmt_misc/WSLInterop* not found, your WSL env is broken." 1>&2
fi

true
